﻿function enter(pi) {
    var eim = pi.getPlayer().getEventInstance();
    var stage4 = parseInt(eim.getProperty("stage4"));
    if (stage4 == 4) {
        pi.warpParty(925100500, 0);
    } else {
        pi.playerMessage(5, "请关闭所有的门");
    }
}
